
import axios from "axios";



axios.defaults.baseURL = 'http://localhost:3000'



axios.interceptors.request.use(function (config) {
    //请求发送之前    
    return config
}, function (error) {
    return Promise.reject(error)
})

axios.interceptors.response.use(function (response) {
    //请求响应之前
    return response.data
}, function (error) { return Promise.reject(error) })



export default axios